<include file="Public:header" />
<div class="subnav">
  <div class="explain-col" style="position: relative;">
    模式：
    <input name="moshi" class="moshi" type="radio" value="0" checked="checked"> 简洁
    <input name="moshi" class="moshi" type="radio" value="1"> 详细
    
    <span style="margin-left:100px">电话内容颜色：</span>
    <input name="contentColor" class="contentColor" type="radio" value="0" checked="checked"> 默认
    <input name="contentColor" class="contentColor" type="radio" value="red" > 红色
    <input name="contentColor" class="contentColor" type="radio" value="blue" > 蓝色
  </div>
</div>

<volist name="list" id="vo">
  <fieldset>
    <legend>{$vo.groupName}</legend>
    <table class="table_form" width="100%" cellspacing="0">
      <tbody>
        <tr>
          <th width="100">客户姓名：</th>
          <td width="200">{$vo.name}</td>
          <th width="100">性别：</th>
          <td >{$vo.sexName}</td>
        </tr>
        <tr class="detail" style="display:none;" >
          <th width="100">客户电话：</th>
          <td>{$vo.phone}</td>
          <th>客户区域：</th>
          <td>{$vo.provinceName}{$vo.cityName}{$vo.areaName}</td>
        </tr>

        <tr class="detail" style="display:none;">
          <th width="100">通话时间：</th>
          <td colspan="3">{$vo.talktime|date='Y-m-d H:i:s',###}</td>
          
        </tr>
        <tr class="detail" style="display:none;">
          <th width="100">创建用户：</th>
          <td>{$vo.creater}</td>
          <th width="100">添加时间：</th>
          <td >{$vo.create_time|date='Y-m-d H:i:s',###}</td>
        </tr>
        <tr class="last">
          <th width="100">电话内容：</th>
          <td colspan="3">{$vo.content}</td>
        </tr>
      </tbody>
    </table>
  </fieldset>
  </volist>
 <div class="btn" >
      <div id="pages" style="width:600px;">{$page}</div>
    </div>
</body>
</html>
<script type="text/javascript">
$(function(){
	$(".moshi").change(function(){
		var moshi = $(this).val();
		if(moshi==1){
			$('.detail').show();
		}else{
			$('.detail').hide()
		}
	})
	
	$(".contentColor").change(function(){
		var color = $(this).val();
		$('.last').removeClass('red');
		$('.last').removeClass('blue');
		if(color==0){
			
		}else{
			$('.last').addClass(color);
		}
	})
})
</script>